<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */


class PortfolioApplication extends Application{
    public static function createInstance($dir, $layout){
        if(!isset(self::$instance)){
            self::$instance = new self();
            self::$instance->dir = $dir;
            self::$instance->layout = $layout;
            self::$instance->prepare();
        }
    }
    
    protected function prepareLayout($actionString) {
        $this->layout->addVar("content", $actionString);
    }
}